import { Button } from 'antd-mobile'
import React from 'react'
import { useNavigate } from 'react-router-dom'
const My = () => {
    const navigate=useNavigate()
    const tc=()=>{
     localStorage.removeItem("token")
     navigate("/login")
    }
  return (
    <div>
      我的
      <Button onClick={() => tc()}>退出</Button>
    </div>
  )
}

export default My
